]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: Perform grab on the stage actor
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 25 Jan 2022 10:48:55 +0000 (11:48 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 29 Jan 2022 00:16:30 +0000 (01:16 +0100)
Despite this grab happening in the dialog, we are also interested in
things happening outside of it. Move this grab to happen in the stage
itself, so the changed grab semantics don't make it impossible to
interact with parts of the login screen.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2045>

js/gdm/loginDialog.js

index 802c7c260ec41f5b357245a83a03c9d816c5722a..6c5018006ef1cafd6f8f4a9d83f991bd270632cf 100644 (file)
@@ -1289,7 +1289,7 @@ var LoginDialog = GObject.registerClass({
 
         this.opacity = 0;
 
-        Main.pushModal(this, { actionMode: Shell.ActionMode.LOGIN_SCREEN });
+        Main.pushModal(global.stage, { actionMode: Shell.ActionMode.LOGIN_SCREEN });
 
         this.ease({
             opacity: 255,
@@ -1301,7 +1301,7 @@ var LoginDialog = GObject.registerClass({
     }
 
     close() {
-        Main.popModal(this);
+        Main.popModal(global.stage);
         Main.ctrlAltTabManager.removeGroup(this);
     }